import http from "@/utils/http"

const prefixUrl = "/file"
export default {
  query(params) {
    return http.get(prefixUrl, params)
  },
  create(params) {
    return http.post(prefixUrl, params)
  },
  select(id) {
    return http.get(prefixUrl + "/" + id)
  },
  update(id, params) {
    return http.put(prefixUrl + "/" + id, params)
  },
  delete(id) {
    return http.delete(prefixUrl + "/" + id)
  },
}
